<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑文章</title>
    <style>
        body {
            font-family: 'Courier New', Courier, monospace;
            background-color: #000;
            color: #00ff00;
            text-align: center;
            margin: 0;
            padding: 0;
        }
        .header {
            padding: 20px;
            background-color: #001f3f;
            position: relative;
        }
        .header h1 {
            margin: 0;
            font-size: 3em;
            display: inline-block;
        }
        .header .auth-buttons {
            position: absolute;
            top: 20px;
            right: 20px;
        }
        .header .auth-button {
            background-color: #00ff00;
            color: #000;
            border: none;
            padding: 10px 20px;
            font-size: 1em;
            cursor: pointer;
            margin-left: 10px;
        }
        .main-content {
            padding: 20px;
        }
        .main-content h2 {
            font-size: 2em;
        }
        .main-content p {
            font-size: 1.2em;
        }
        .footer {
            padding: 10px;
            background-color: #001f3f;
            position: fixed;
            bottom: 0;
            width: 100%;
        }
        .footer p {
            margin: 0;
            font-size: 1em;
        }
        .glow {
            text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
        }
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1 class="glow">编辑文章</h1>
        <div class="auth-buttons">
            <button class="auth-button" onclick="location.href='/'">返回列表</button>
        </div>
    </div>
    <div class="main-content">
        <form method="post">
            <div class="form-group">
                <label for="title">标题:</label>
                <input type="text" id="title" name="title" value="{{ article.title }}" required>
            </div>
            <div class="form-group">
                <label for="author">作者:</label>
                <input type="text" id="author" name="author" value="{{ article.author }}" required>
            </div>
            <div class="form-group">
                <label for="content">内容:</label>
                <textarea id="content" name="content" rows="10" required>{{ article.content }}</textarea>
            </div>
            <button class="auth-button" type="submit">保存</button>
        </form>
    </div>
    <div class="footer">
        <p class="glow">版权所有 &copy; 2025 未来之城</p>
    </div>
</body>
</html>
